package com.cosina.game.robodefence.ui.drawable;

import android.graphics.Canvas;

import com.cosina.game.robodefence.core.BattleEngine;
import com.cosina.game.robodefence.ui.ImageManager;
import com.cosina.game.robodefence.ui.PaintSuite;
import com.cosina.game.robodefence.util.CanvasUtil;

public class DiagDrawable extends BaseDrawable {

	@Override
	public void draw(Canvas canvas) {
		canvas.drawBitmap(ImageManager.heart, 440, 27, PaintSuite.p4Text);
		CanvasUtil.drawText(canvas, BattleEngine.commander.getBounsInfo(), 5, 22, PaintSuite.p4Text, 16,CanvasUtil.LEFT);
		CanvasUtil.drawText(canvas, BattleEngine.commander.getScoreInfo(), 5, 40, PaintSuite.p4Text, 16,CanvasUtil.LEFT);
		CanvasUtil.drawText(canvas, BattleEngine.commander.getLevelInfo(), 240, 22, PaintSuite.p4Text, 16,CanvasUtil.CENTER);
		CanvasUtil.drawText(canvas, BattleEngine.commander.getMoneyInfo(), 468, 22, PaintSuite.p4Text, 16,CanvasUtil.RIGHT);
		CanvasUtil.drawText(canvas, BattleEngine.commander.getHpInfo(), 455, 46, PaintSuite.p4Text, 14,CanvasUtil.CENTER);
	}
}
